package com.privatetime.dao.impl;

import java.util.List;

import com.privatetime.dao.CardDao;
import com.privatetime.model.Card;

public class CardDaoImpl extends BaseDaoImpl<Card, Integer> implements CardDao {

	public List<Card> findCardList(Integer userId) {
		StringBuffer sql = new StringBuffer();
		sql.append("from Card card where card.user.id=?");
		List<Card> cardList = findEntityList(sql.toString(), userId);
		return cardList;
	}

}
